package com.wcc.mpmultidb.dao.slave;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.dynamic.datasource.annotation.Master;
import com.baomidou.dynamic.datasource.annotation.Slave;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wcc.mpmultidb.entity.User;
import com.wcc.mpmultidb.entity.UserPg;

import java.util.List;

/**
 * @author wuch
 * @version 1.0
 * @date 2021/4/8 15:26
 */
//@Slave
@DS("postgresql")
public interface SlaveUserMapper
        extends BaseMapper<UserPg>
{
    List<User> selectByAge(Integer age);
}
